import com.bosssoft.hr.train.spring.dao.UserDao;
import com.bosssoft.hr.train.spring.dao.UserDaoImpl;
import com.bosssoft.hr.train.spring.demo.User;
import com.bosssoft.hr.train.spring.service.UserService;
import com.bosssoft.hr.train.spring.service.UserServiceImpl;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.*;

/**
 * @Author: wang
 * @Time: 2022/3/6
 */

public class test {


    public static void main(String[] args) {
        ApplicationContext ac=new ClassPathXmlApplicationContext("spring.xml");
        UserDao userDao=ac.getBean("userDao",UserDao.class);

        ArrayList sa=new ArrayList();
        sa.add(1);
        sa.add(2);
        boolean s=userDao.deleteById(sa);
        System.out.println(s);

    }
}
